﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using HNCDataSetTableAdapters;

public partial class UserControl_banner : System.Web.UI.UserControl
{
    InfoTableAdapter info = new InfoTableAdapter();
    ProductsTableAdapter pro = new ProductsTableAdapter();
    CategoryTableAdapter cate = new CategoryTableAdapter();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataTable dt = pro.GetProductByCateID(10);
            rptCustomer.DataSource = dt;
            rptCustomer.DataBind();
        }
    }
}